<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 王瀚 <whan0216@gmail.com> <code-tech.diandian.com>
// +----------------------------------------------------------------------

namespace Product\Model;
use Think\Model;

/**
 * Class PostsModel 现货贴
 * @package Issue\Model
 * @auth 王瀚
 */
class PostsModel extends Model {

    protected $tableName='posts';
    protected $_validate = array(
      array('code','require','code必须填写'), //默认情况下用正则进行验证
    );
    protected $_auto = array(
        array('created_time', NOW_TIME, self::MODEL_INSERT),
        array('updated_time', NOW_TIME, self::MODEL_UPDATE),
        array('status', '1', self::MODEL_INSERT),
    );

}